package com.huaxiafinance.management.mapper;

import com.huaxiafinance.management.dto.request.BonusDto;
import com.huaxiafinance.management.dto.request.QueryFranchiseeToBeInfoDto;
import com.huaxiafinance.management.model.PartnerCommission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PartnerCommissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PartnerCommission record);

    int insertSelective(PartnerCommission record);

    PartnerCommission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PartnerCommission record);

    int updateByPrimaryKey(PartnerCommission record);

    String  getJoinReward(@Param("userUuid") String userUuid, @Param("sourceGrade") Integer sourceGrade);

    List<PartnerCommission> selectCommission(QueryFranchiseeToBeInfoDto dto);

    List<PartnerCommission> queryByDto(BonusDto dto);

    int countByDto(BonusDto dto);
}